/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Obstetrics Gynecology Provider Codes</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S20163 (C-0-T19465-S20096-S20163-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getObstetricsGynecologyProviderCodes()
 * @model extendedMetaData="name='ObstetricsGynecologyProviderCodes'"
 * @generated
 */
public enum ObstetricsGynecologyProviderCodes implements Enumerator {
	/**
	 * The '<em><b>207V00000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_207V00000X_VALUE
	 * @generated
	 * @ordered
	 */
	_207V00000X(0, "_207V00000X", "207V00000X"),

	/**
	 * The '<em><b>207VC0200X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_207VC0200X_VALUE
	 * @generated
	 * @ordered
	 */
	_207VC0200X(1, "_207VC0200X", "207VC0200X"),

	/**
	 * The '<em><b>207VX0201X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_207VX0201X_VALUE
	 * @generated
	 * @ordered
	 */
	_207VX0201X(2, "_207VX0201X", "207VX0201X"),

	/**
	 * The '<em><b>207VG0400X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_207VG0400X_VALUE
	 * @generated
	 * @ordered
	 */
	_207VG0400X(3, "_207VG0400X", "207VG0400X"),

	/**
	 * The '<em><b>207VM0101X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_207VM0101X_VALUE
	 * @generated
	 * @ordered
	 */
	_207VM0101X(4, "_207VM0101X", "207VM0101X"),

	/**
	 * The '<em><b>207VX0000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_207VX0000X_VALUE
	 * @generated
	 * @ordered
	 */
	_207VX0000X(5, "_207VX0000X", "207VX0000X"),

	/**
	 * The '<em><b>207VE0102X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_207VE0102X_VALUE
	 * @generated
	 * @ordered
	 */
	_207VE0102X(6, "_207VE0102X", "207VE0102X");

	/**
	 * The '<em><b>207V00000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>207V00000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_207V00000X
	 * @model literal="207V00000X"
	 * @generated
	 * @ordered
	 */
	public static final int _207V00000X_VALUE = 0;

	/**
	 * The '<em><b>207VC0200X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>207VC0200X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_207VC0200X
	 * @model literal="207VC0200X"
	 * @generated
	 * @ordered
	 */
	public static final int _207VC0200X_VALUE = 1;

	/**
	 * The '<em><b>207VX0201X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>207VX0201X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_207VX0201X
	 * @model literal="207VX0201X"
	 * @generated
	 * @ordered
	 */
	public static final int _207VX0201X_VALUE = 2;

	/**
	 * The '<em><b>207VG0400X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>207VG0400X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_207VG0400X
	 * @model literal="207VG0400X"
	 * @generated
	 * @ordered
	 */
	public static final int _207VG0400X_VALUE = 3;

	/**
	 * The '<em><b>207VM0101X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>207VM0101X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_207VM0101X
	 * @model literal="207VM0101X"
	 * @generated
	 * @ordered
	 */
	public static final int _207VM0101X_VALUE = 4;

	/**
	 * The '<em><b>207VX0000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>207VX0000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_207VX0000X
	 * @model literal="207VX0000X"
	 * @generated
	 * @ordered
	 */
	public static final int _207VX0000X_VALUE = 5;

	/**
	 * The '<em><b>207VE0102X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>207VE0102X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_207VE0102X
	 * @model literal="207VE0102X"
	 * @generated
	 * @ordered
	 */
	public static final int _207VE0102X_VALUE = 6;

	/**
	 * An array of all the '<em><b>Obstetrics Gynecology Provider Codes</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final ObstetricsGynecologyProviderCodes[] VALUES_ARRAY =
		new ObstetricsGynecologyProviderCodes[] {
			_207V00000X,
			_207VC0200X,
			_207VX0201X,
			_207VG0400X,
			_207VM0101X,
			_207VX0000X,
			_207VE0102X,
		};

	/**
	 * A public read-only list of all the '<em><b>Obstetrics Gynecology Provider Codes</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<ObstetricsGynecologyProviderCodes> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Obstetrics Gynecology Provider Codes</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static ObstetricsGynecologyProviderCodes get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			ObstetricsGynecologyProviderCodes result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Obstetrics Gynecology Provider Codes</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static ObstetricsGynecologyProviderCodes getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			ObstetricsGynecologyProviderCodes result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Obstetrics Gynecology Provider Codes</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static ObstetricsGynecologyProviderCodes get(int value) {
		switch (value) {
			case _207V00000X_VALUE: return _207V00000X;
			case _207VC0200X_VALUE: return _207VC0200X;
			case _207VX0201X_VALUE: return _207VX0201X;
			case _207VG0400X_VALUE: return _207VG0400X;
			case _207VM0101X_VALUE: return _207VM0101X;
			case _207VX0000X_VALUE: return _207VX0000X;
			case _207VE0102X_VALUE: return _207VE0102X;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private ObstetricsGynecologyProviderCodes(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //ObstetricsGynecologyProviderCodes
